﻿using System;
using UnityEngine;

public class Stone : MonoBehaviour
{
    public void Start()
    {
        Entity entity = GetComponent<Entity>();

        entity.onHurt += delegate (object obj)
        {

        };

        entity.onDie += delegate (object obj) {
            GameObject.DestroyObject(gameObject);
        };
    }
}